﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for Product
/// </summary>
public class Item
{

    public Int64 Id { get; set; }
    public string PostingName { get; set; }
    public double Price { get; set; }
    public Item(Int64 id)
    {
        this.Id = id;
        PostingDAO postDAO = new PostingDAO();
        PostingInfo postInfo = postDAO.GetPostingById(id);

        this.PostingName = postInfo.PostingName;
        this.Price = postInfo.Price;
    }

}